<template>
	<view class="content">
		<view class="page-area">
			<view class="tabsBox">
				<u-tabs :list="list1" @click="click" lineColor="#fff"
				:activeStyle="{
					color: '#191919', 
					fontSize:'14px',
					fontWeight: 'bold',
				}"
				:inactiveStyle="{
					fontSize:'14px',
					color: '#828282', 
				}"></u-tabs>
			</view>
			<view class="filterBox">
				<view class="left">
					<view class="item">
						综合
					</view>
					<view class="item">
						销量
					</view>
					<view class="item">
						价格
						<view class="icon">
							<u-icon name="arrow-up" color="#333" size="6"></u-icon>
							<u-icon name="arrow-down" color="#333" size="6"></u-icon>
						</view>
					</view>
				</view>
				<view class="right">
					<text>筛选</text>
					<image src="/static/s.png" mode=""></image>
				</view>
			</view>
		</view>
		
		<view class="goods_list">
			<view class="item" @click="handleToDetail">
				<view class="image">
					<view class="t">
						<u-icon name="heart" color="#666" size="16"></u-icon>
					</view>
					<image src="../../static/6.png" mode=""></image>
				</view>
				<view class="text">
					<view class="title">
						路易威登/LV
					</view>
					<view class="dec">
						帆布拼牛皮双肩包
					</view>
					<view class="price">
						¥ 20,999
					</view>
				</view>
			</view>
			<view class="item">
				<view class="image">
					<view class="t">
						<u-icon name="heart" color="#666" size="16"></u-icon>
					</view>
					<image src="../../static/6.png" mode=""></image>
				</view>
				<view class="text">
					<view class="title">
						路易威登/LV
					</view>
					<view class="dec">
						帆布拼牛皮双肩包
					</view>
					<view class="price">
						¥ 20,999
					</view>
				</view>
			</view>
			<view class="item">
				<view class="image">
					<view class="t">
						<u-icon name="heart" color="#666" size="16"></u-icon>
					</view>
					<image src="../../static/6.png" mode=""></image>
				</view>
				<view class="text">
					<view class="title">
						路易威登/LV
					</view>
					<view class="dec">
						帆布拼牛皮双肩包
					</view>
					<view class="price">
						¥ 20,999
					</view>
				</view>
			</view>
			<view class="item">
				<view class="image">
					<view class="t">
						<u-icon name="heart" color="#666" size="16"></u-icon>
					</view>
					<image src="../../static/6.png" mode=""></image>
				</view>
				<view class="text">
					<view class="title">
						路易威登/LV
					</view>
					<view class="dec">
						帆布拼牛皮双肩包
					</view>
					<view class="price">
						¥ 20,999
					</view>
				</view>
			</view>
			
		</view>
		
		<view class="cart_icon">
			<image src="/static/cart_i.png" mode=""></image>
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				list1: [{
					name: '二级分类名称',
				}, {
					name: '二级分类名称',
				}, {
					name: '二级分类名称'
				}, {
					name: '二级分类名称'
				}, {
					name: '二级分类名称'
				}, {
					name: '二级分类名称'
				}, {
					name: '二级分类名称'
				}, {
					name: '二级分类名称'
				}, {
					name: '二级分类名称'
				}]
			}
		},
		methods: {
			handleToDetail(){
				uni.navigateTo({
					url:"./detail"
				})
			},
			click(item) {
				console.log('item', item);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.cart_icon{
		position: fixed;
		right: 30rpx;
		bottom: 60rpx;
		image{
			width: 88rpx;
			height: 88rpx;
		}
	}
	.goods_list{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 24rpx;
		box-sizing: border-box;
		.item{
			width: 49%;
			margin-bottom: 20rpx;
			background: #F8F8F8;
			 margin-bottom: 22rpx;
			 padding-bottom: 32rpx;
			.image{
				width: 100%;
				height: 310rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				position: relative;
				.t{
					position: absolute;
					right: 16rpx;
					top: 16rpx;
				}
				image{
					width: 100%;
					height: 310rpx;
				}
			}
			.text{
				padding-top: 20rpx;
				.title{
					font-size: 28rpx;
					color: #333;
					text-align: center;
				}
				.dec{
					font-size: 24rpx;
					color: #999;
					margin-top: 8rpx;
					text-align: center;
				}
				.price{
					font-size: 28rpx;
					margin-top: 16rpx;
					text-align: center;
					color: #333;
				}
			}
		}
	}
	.filterBox{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 40rpx;
		.right{
			display: flex;
			align-items: center;
			text{
				font-size: 24rpx;
				color: #020202;
			}
			image{
				width: 22rpx;
				height: 22rpx;
				margin-left: 10rpx;
			}
		}
		.left{
			display: flex;
			align-items: center;
			.item{
				width: 98rpx;
				height: 48rpx;
				font-size: 24rpx;
				color: #999;
				margin-right: 24rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 25rpx;
				border: 1rpx solid #E8E8E8;
				.icon{
					margin-left: 4rpx;
				}
			}
		}
	}
	.tabsBox{
		border-bottom: 1rpx solid #E8E8E8;
		padding-bottom: 20rpx;
	}
	.page-area{
		padding: 24rpx;
		box-sizing: border-box;
	}
</style>